package com.tang.service.admin.model.res;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author tang jun liang
 * @Date 2023/4/26 16:07
 */
@Data
@Schema
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResRoute implements Serializable {

    @Schema(description = "名称")
    private String name;

    @Schema(description = "路径")
    private String path;

    @Schema(description = "是否隐藏菜单")
    private Boolean hideInMenu;

    @Schema(description = "组件地址")
    private String component;

    @Schema(description = "重定向")
    private String redirect;


    @Schema(description = "子路由信息")
    private List<ResRoute> routes;


    @Schema(description = "权限")
    private String access;



}
